package operation;

import book.BookList;

public class ExitOperation implements IOperation{
    @Override
    public void work(BookList booklist) {
        System.out.println("退出程序...");
        int currentSize = booklist.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            booklist.setBook(i,null);
        }
        System.exit(0);
    }
}
